

        <g:set var="entityName" value="${message(code: 'article.label', default: 'Article')}" />
            <g:form method="post" >
                <g:hiddenField name="id" value="${articleInstance?.id}" />
                <g:hiddenField name="version" value="${articleInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="title"><g:message code="article.title.label" default="Title" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: articleInstance, field: 'title', 'errors')}">
                                    <g:textField name="title" maxlength="250" value="${articleInstance?.title}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="category"><g:message code="article.category.label" default="Category" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: articleInstance, field: 'category', 'errors')}">
                                     <g:lookupSelect id="category" name="category" realm="personalCategory" 
                                value="${articleInstance?.category}"/>
                                </td>
                            </tr>

                             <tr class="prop" id="sharedtr">
                                <td valign="top" class="name">
                                   <label for="shared">
                                   <a href="javascript:" id="sharedselect"><g:message code="article.receiver.label" default="receiver" /></a></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: articleInstance, field: 'content', 'errors')}">
<div id="selected"><g:each in="${articleInstance?.receiver}" var="t">${t}<input type='hidden' name='receiver' value='${t.id}'></g:each></div>
<div id="dialog-select" class="hide" title="选择共享人">
<iframe id="iframe" name="iframe" width="100%" height="100%" src="${createLink(controller:'articleAjax', action: 'sharedSelect')}" noresize scrolling="no"></iframe>
</div>
                                </td>
                            </tr>    
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="content"><g:message code="article.content.label" default="Content" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: articleInstance, field: 'content', 'errors')}">
                                    <ckeditor:config    height="300px"    width="80%"  />
                                    <ckeditor:editor name="content" >${articleInstance?.content}</ckeditor:editor>
                                </td>
                            </tr>
                         
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="informToMobile"><g:message code="article.informToMobile.label" default="Inform To Mobile" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: articleInstance, field: 'informToMobile', 'errors')}">
                                    <g:checkBox name="informToMobile" class="checkbox" value="${articleInstance?.informToMobile}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="informToMail"><g:message code="article.informToMail.label" default="Inform To Mail" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: articleInstance, field: 'informToMail', 'errors')}">
                                    <g:checkBox name="informToMail" class="checkbox" value="${articleInstance?.informToMail}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="echo"><g:message code="article.echo.label" default="Echo" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: articleInstance, field: 'echo', 'errors')}">
                                    <g:checkBox name="echo" class="checkbox" value="${articleInstance?.echo}" />
                                </td>
                            </tr>
                         
                         
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
                 </div>
            </g:form>
